const fs = require('fs');
function loadJSON(filePath){
	// 加载file
	let fstr = loadText(filePath);
	return JSON.parse(fstr)
	
}
function loadText(filePath,charset){
	charset = charset || "utf8";
    return fs.readFileSync(filePath, charset);
}
module.exports = {
    "loadJSON":loadJSON,
	"loadText":loadText
};